package string;

public class StringDemo {
    public static void main(String[] args) {


        String s1 = "helloabc";
        String s2 = "hello";
        String s3 = new String("bye");
        String s4=s1+s3;
        String s5="hello"+"abc";
        String s6=new String("hello");
        System.out.println(s1==s2);//
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s6==s2);
        System.out.println(s6.equals(s2));
        //String的equals方法被改写
        //builder并没有改写


        //int[]sst={1,2,3,4,};

    }
}
